package com.neusoft.elm_servlet.controller;

import java.sql.SQLException;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.neusoft.elm_servlet.po.Food;
import com.neusoft.elm_servlet.service.FoodService;
import com.neusoft.elm_servlet.service.impl.FoodServiceImpl;

public class FoodController {
	
	FoodService foodService = new FoodServiceImpl();

	public List<Food> listFoodByBusinessId(HttpServletRequest request,HttpServletResponse response) throws SQLException{
		String businessId = request.getParameter("businessId");
		List<Food> list = foodService.listFoodByBusinessId(businessId);
		return list;
	}
}
